<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table{
            margin: 0 auto;
        }
        td{
            width: 120px;
            height: 30px;
            background:orange;
            text-align: center;
            font-weight: 700;
            color: white;
        }
    </style>
</head>
<body>
    <script>
        let rmb = 18299
        let int = prompt("请输入需要的数量")
        let zj = int * rmb
        let dz = prompt("请输入地址")
        document.write(`
        <table border="1px" cellspacing="0" cellpadding="0">
        <caption>订单详情页面</caption>
        <tr>
            <td>商品名称</td>
            <td>商品价格</td>
            <td>商品数量</td>
            <td>总价</td>
            <td>收获地址</td>
        </tr>
        <tr>
            <td>华为matex5</td>
            <td>18299￥</td>
            <td>${int}</td>
            <td>${zj}</td>
            <td>${dz}</td>
        </tr>
    </table>
    `)
    </script>
</body>
</html>